package com.learn.springboot.learnspringboot.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 10:15 2018-11-16
 * @Modify by:
 */
@Component
@ConfigurationProperties(prefix = "author")
@PropertySource(value = "classpath:config/author.properties")
public class AuthorDemo {

  private String name;

  private long age;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public long getAge() {
    return age;
  }

  public void setAge(long age) {
    this.age = age;
  }
}
